home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cocktail
/
reuse.lha
/
reuse
/
c
/
Positions.h
< prev
next >
Wrap
C/C++ Source or Header
|
1992-08-18
|
877b
|
36 lines
# ifndef yyPositions
# define yyPositions
/* $Id: Positions.h,v 1.0 1992/08/07 14:31:43 grosch rel $ */
/* $Log: Positions.h,v $
* Revision 1.0 1992/08/07 14:31:43 grosch
* Initial revision
*
*/
/* Ich, Doktor Josef Grosch, Informatiker, Juli 1992 */
# include <stdio.h>
# if defined __STDC__ | defined __cplusplus
# define ARGS(parameters) parameters
# else
# define ARGS(parameters) ()
# endif
typedef struct { unsigned short Line, Column; } tPosition;
extern tPosition NoPosition;
/* A default position (0, 0). */
extern int Compare ARGS((tPosition Position1, tPosition Position2));
/* Returns -1 if Position1 < Position2. */
/* Returns 0 if Position1 = Position2. */
/* Returns 1 if Position1 > Position2. */
extern void WritePosition ARGS((FILE * File, tPosition Position));
/* The 'Position' is printed on the 'File'. */
# endif